import { ref } from 'vue'

export const useNum = () => {
  // num  点击++  但代码要完全抽离
  // vue2 mixin     vue3 直接抽离
  const num = ref(0)
  const numAdd = () => {
    num.value++
  }
  return { num, numAdd }
}
